var global_name = 1;

//  类里面不需要使用 var等来标记 function
class Site {
    local_num = 2;
    static num = 10;
    print(): void {
        var x = "123";
        console.log(this.local_num);
    }
}

var site: Site = new Site();
site.print();